package com.imooc.o2o.dto;

import java.util.List;

import com.imooc.o2o.entity.PersonInfo;
import com.imooc.o2o.enums.PersonInfoStateEnum;

public class PersonInfoExecution {
	//结果状态
	private int state;
	//状态标识
	private String stateInfo;
	
	private int count;
	
	//用户信息实体类
	private PersonInfo personInfo;
	
	//用户信息列表
	private List<PersonInfo> personInfoList;
	
	//构造函数
	public PersonInfoExecution() {
	}
	
	//用户添加失败时的构造器
	public PersonInfoExecution(PersonInfoStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}
	//用户添加成功时的构造器
	public PersonInfoExecution(PersonInfoStateEnum stateEnum, PersonInfo personInfo) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.personInfo = personInfo;
	}	
	//用户添加成功时的构造器
	public PersonInfoExecution(PersonInfoStateEnum stateEnum, List<PersonInfo> personInfoList) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.personInfoList = personInfoList;
	}

	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public String getStateInfo() {
		return stateInfo;
	}
	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}
	public PersonInfo getPersonInfo() {
		return personInfo;
	}
	public void setPersonInfo(PersonInfo personInfo) {
		this.personInfo = personInfo;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public List<PersonInfo> getPersonInfoList() {
		return personInfoList;
	}
	public void setPersonInfoList(List<PersonInfo> personInfoList) {
		this.personInfoList = personInfoList;
	}			
}
